(function($) {
    Rein.EditEditFolderPage = function() {
        
        this.init = function() {
            
            // Init select folder dialog
            this.dialog = new Rein.SelectFolderDialog('#txtParentId', function(folder) {
                if ($.cookie('currentFolderId') == folder.id) {
                    return false;
                }
                return true;
            });
        }
        
        this.init();
    }
})(jQuery);


$(document).on('ready', function() {
    new Rein.EditEditFolderPage();
});